'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 在线用户数统计
 * @author agl
 */

var mongoose = require('mongoose');
var _ = require('lodash');

/**
 * 在线用户数统计
 */
var onlineUserCountSchema = new mongoose.Schema({
    // 渠道id
    channel_id: {
        type: String,
        required: true,
        unique: true,
        index: true
    },

    // 已经扫荡的次数
    user_count: {
        type: Number,
        default: 0
    }
});

mongoose.model('OnlineUserCount', onlineUserCountSchema);
